from django.conf import settings
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template

from django.contrib import admin
admin.autodiscover()

handler500 = "pinax.views.server_error"

urlpatterns = patterns("",
    url(r"^$", direct_to_template, {
        "template": "homepage.html",
    }, name="home"),
    url(r"^admin/", include(admin.site.urls)),
    url(r"^profiles/", include("tb_profiles.urls")),
    url(r"^tasks/", include("taskberry.apps.tasks.urls")),
    url(r"^account/", include("pinax.apps.account.urls")),
    url(r'^comments/', include('django.contrib.comments.urls')),
    url(r'^threadedcomments/', include('threadedcomments.urls')),                   
    url(r"^notices/", include("notification.urls")),                   
    url(r'^attachments/', include('attachments.urls')),                   
    url(r"^tagging_utils/", include("pinax.apps.tagging_utils.urls"))
)

if settings.SERVE_MEDIA:
    urlpatterns += patterns("",
        url(r"", include("staticfiles.urls")),
    )
